<div class='fui-page fui-page-current member-log-page'>
	<div class="fui-header">
        <div class="fui-header-left" ng-click='goback()'>
            <a class="back"></a>
        </div>
        <div class="title">记录</div>
    </div>
    <div class='fui-content' >
		<div class="fui-tab fui-tab-success">
			<a ng-class="{'active':pagedata.params.type==0}" href="javascript:;" ng-click="pagedata.params.type=0;tool.get_list('jy_lianmerch/creditshop/getlist/',true)">兑换记录</a>
			<a ng-class="{'active':pagedata.params.type==1}" href="javascript:;" ng-click="pagedata.params.type=1;tool.get_list('jy_lianmerch/creditshop/getlist/',true)">抽奖记录</a>
		</div>
        <div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
            <i class='fa fa-comment-o'></i><br/>暂时没有任何记录!
        </div>
        <div class='fui-list-group container' ng-show="pagedata.list.length>0" >
			<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
				<div class="fui-list-media">
					<img ng-src="{{tomedia(item.member.avatar) ||'../core/resource/images/nopic.jpg'}}" class="round" style="width:2rem;height:2rem">
				</div>
				<div class="fui-list-inner">
					<div class='title'>
						<span class="label label-success">{{item.member.nickname}}</span>
						<span class="red" style="margin-left:0.3rem">￥{{item.money}}</span>
					</div>
					<div class='gray' style="font-size:0.6rem;">消耗{{item.credittitle || '积分'}}{{item.credit}}个</div>
					<div class='gray' style="font-size:0.6rem;">手续费{{item.ratefee || 0}}</div>
					<div class='gray' style="font-size:0.6rem;">{{item.title}}</div>
				</div>
				<div class='fui-list-angle'>
					<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{item.createtime}}</span>
				</div>
			</div>
		</div>
    </div>
</div>
<script>
scope.tool.get_list('jy_lianmerch/creditshop/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_lianmerch/creditshop/getlist/');
}
</script>